<%-- 
    Document   : locationManage
    Created on : Aug 31, 2011, 8:50:01 PM
    Author     : HIEP
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@taglib uri="http://java.fckeditor.net" prefix="fck" %>
<%
    String path = "images/products/cars/";
%>
<!DOCTYPE html>
<div id="content" class="roundedBorders">
    <!-- Title -->
    <div id="title" class="b2">
        <h2>Manage Package Tours Booking</h2>
    </div>
    <!-- Title -->
    <!-- Inner Content -->
    <div id="innerContent">
        <logic:notEmpty name="item">
            <html:form action="/CarBookingAction.do?method=list" method="POST" >
                <div class="fieldset fieldsetBlock active tabs">
                    <div class="header">
                        <h3>Package Tour Booking Details</h3>
                    </div>
                    <div class="tabs">
                        <fieldset id="fieldset1">
                            <logic:notEmpty name="users">
                                <logic:iterate name="users" id="user">
                                    <c:if test="${user.id == item.userId}">
                                        <div class="field required" style="padding: 5px;">
                                            <label>Fullname:</label> ${user.fullname}
                                        </div>
                                        <div class="field required" style="padding: 5px;">
                                            <label>Address:</label> ${user.address}
                                        </div>
                                        <div class="field required" style="padding: 5px;">
                                            <label>Phone:</label> ${user.phone}
                                        </div>
                                        <div class="field required" style="padding: 5px;">
                                            <label>Email:</label> ${user.email}
                                        </div>
                                    </c:if>
                                </logic:iterate>
                            </logic:notEmpty>
                            <logic:notEmpty name="cars">
                                <logic:iterate name="cars" id="car">
                                    <c:if test="${car.id == item.carId}">
                                        <div class="field required" style="padding: 5px;">
                                            <label>Car name:</label> ${car.name}
                                        </div>
                                        <div class="field required" style="padding: 5px;">
                                            <label>Seating capacity:</label> ${car.seatingCapacity}
                                        </div>
                                        <div class="field required" style="padding: 5px;">
                                            <label>Price</label> ${car.price} $
                                        </div>
                                        <div class="field required" style="padding: 5px;">
                                            <label>Images</label> <img src="<%=path%>${car.images}" height="100px" width="150px"/>
                                        </div>
                                    </c:if>
                                </logic:iterate>
                            </logic:notEmpty>
                            <div class="field required" style="padding: 5px;">
                                <label>Booking Date:</label> ${item.createdOn}
                            </div>
                            <div class="field required" style="padding: 5px;">
                                <label>Pick Up Date:</label> ${item.pickUpDate}
                            </div>
                            <div class="field required" style="padding: 5px;">
                                <label>Drop Up Date:</label> ${item.dropUpDate}
                            </div>
                            <div class="field required" style="padding: 5px;">
                                <label>Total:</label> <strong>${item.price} $</strong> 
                            </div>
                            <div id="buttom1">
                                <strong>    
                                    <html:cancel value="Back Booking List" styleClass="buttom_form"/>
                                </strong>
                            </div>
                        </fieldset>
                    </div>
                    <span class="bBR"></span>
                </div>
            </html:form>
        </logic:notEmpty>

        <logic:notEmpty name="item2">
            <html:form action="/CarBookingAction.do?method=list" method="POST" >
                <div class="fieldset fieldsetBlock active tabs">
                    <div class="header">
                        <h3>Package Tour Booking Details</h3>
                    </div>
                    <div class="tabs">
                        <fieldset id="fieldset1">
                            <logic:notEmpty name="users">
                                <logic:iterate name="users" id="user">
                                    <c:if test="${user.id == item2.userId}">
                                        <div class="field required" style="padding: 5px;">
                                            <label>Fullname:</label> ${user.fullname}
                                        </div>
                                        <div class="field required" style="padding: 5px;">
                                            <label>Address:</label> ${user.address}
                                        </div>
                                        <div class="field required" style="padding: 5px;">
                                            <label>Phone:</label> ${user.phone}
                                        </div>
                                        <div class="field required" style="padding: 5px;">
                                            <label>Email:</label> ${user.email}
                                        </div>
                                    </c:if>
                                </logic:iterate>
                            </logic:notEmpty>
                            <logic:notEmpty name="cars">
                                <logic:iterate name="cars" id="car">
                                    <c:if test="${car.id == item2.carId}">
                                        <div class="field required" style="padding: 5px;">
                                            <label>Car name:</label> ${car.name}
                                        </div>
                                        <div class="field required" style="padding: 5px;">
                                            <label>Seating capacity:</label> ${car.seatingCapacity}
                                        </div>
                                        <div class="field required" style="padding: 5px;">
                                            <label>Price</label> ${car.price} $
                                        </div>
                                        <div class="field required" style="padding: 5px;">
                                            <label>Images</label> <img src="<%=path%>${car.images}" height="100px" width="150px"/>
                                        </div>
                                    </c:if>
                                </logic:iterate>
                            </logic:notEmpty>
                            <div class="field required" style="padding: 5px;">
                                <label>Booking Date:</label> ${item2.createdOn}
                            </div>
                            <div class="field required" style="padding: 5px;">
                                <label>Pick Up Date:</label> ${item2.pickUpDate}
                            </div>
                            <div class="field required" style="padding: 5px;">
                                <label>Delete Date:</label> ${item2.modifiedOn}
                            </div>
                            <div class="field required" style="padding: 5px;">
                                <label>Refund:</label> <strong>${item2.refund} $</strong> 
                            </div>
                            <div id="buttom1">
                                <strong>    
                                    <html:cancel value="Back Booking List" styleClass="buttom_form"/>
                                </strong>
                            </div>
                        </fieldset>
                    </div>
                    <span class="bBR"></span>
                </div>
            </html:form>
        </logic:notEmpty>
    </div>
    <!-- /Inner Content -->
    <div class="bBottom"><div></div></div>
</div>

